<!DOCTYPE html>
<html class="ui-page-login">

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>未绑定门店</title>
		<link href="css/mui.min.css" rel="stylesheet" />
		<link href="css/style.css" rel="stylesheet" />
		<link href="css/reg_style.css" rel="stylesheet" />
		<link rel="stylesheet" type="text/css" href="css/common.css"/>
		<style>
			.logo-login-not {
				width: 0.75rem;
				height: 0.75rem;
				margin: 0.55rem auto 0 auto;
				border: 1px solid #FFF;
				border-radius: 50%;
			}
			
			.logo-title-not {
				display: inline-block;
				margin: 0.15rem auto 0 auto;
				font-size: 0.2rem;
				width: 100%;
				color: #FF6A4C;
			}
			
			.mui-btn.mui-btn-block.mui-btn-primary.add{
				margin: 0.75rem auto 0 auto;			
			}
			
			.mui-btn.mui-btn-block.mui-btn-primary.login{
				margin: 0.3rem auto 0 auto;	
			}	
			.link-area.register.not{
				color: #808080;				
				margin-top: 1.2rem;	
			}		
		</style>

	</head>

	<body>
		<div class="mui-content">
			<div class="mui-content-padded content-box">
				<img class="logo-login-not" id='logo-logined' src="img/tj.png" />
				<h3 class="logo-title-not">您当前未加入任何门店</h3>
				<button id='btn_login-add' onclick="btn_menus_bind_shop();" class="mui-btn mui-btn-block mui-btn-primary add jianbian3_shengse" style="width: 110%;margin-left: -5%;">添加门店</button>
				<button id='btn_login-login' onclick="btn_menus_login();" class="mui-btn mui-btn-block mui-btn-primary login jianbian3_shengse" style="width: 110%;margin-left: -5%;">登录Demo体验店</button>
				<div class="link-area register not">
					<span id='register' onclick="btn_menus_loginout();" style="color: #007aff;">退出登录</span>
				</div>
			</div>
			<div class="mui-content-padded oauth-area">

			</div>
		</div>


		<script src="js/mui.min.js"></script>
		<script src="js/mui.enterfocus.js"></script>
		<script src="js/app.js"></script>
		<script src="js/jquery.js"></script>
		<script type="text/javascript" src="js/jsencrypt.js"></script>
		<script src="js/md5.js"></script>
		<script src="js/crypto-js.js"></script>
		<script type="text/javascript" src="js/common.js"></script>
		<script>
			mui.ready(function() {
				//获取当前的客户数据
				xminereadyload();
				
			});

			function btn_menus_bind_shop() {
				window.location.href = "me_user_bind.html";
				
			}
			
			function btn_menus_login() {
				//这是登录后 绑定体验店的
				mine_bind_demo();
			}


			function btn_menus_loginout() {
				window.localStorage.clear();
				storage["id"] = user_info.id;
				storage["avatar"] = user_info.avatar;					
				window.location.href = "reg_user_login.html";
			}


			//登录前-加入体验店
			function user_bind_demo() {
		
				//读取登录信息
				var id = storage["id"];

				var sbx = {};
				sbx.id = id;
	
				login_encrypt_md5(sbx);
				console.log(sbx);
				ajax_submit_before(url_host + 'user/bind/demo', 'user_bind_demo');

			}
			
			
			//登录后-进行绑定体验店的
			function mine_bind_demo() {
				var xbx = {}; //登录后的参数对象AES加密
				xbx.id = user_info.user_id;

				official_login_after(url_host + 'mine/bind/demo', xbx, 'mine_bind_demo');
			}			

		</script>
	</body>

</html>